package com.runfast.waimai.web.controller;

import com.runfast.common.utils.TokenUtil;
import com.runfast.common.web.entity.Result;
import com.runfast.waimai.dao.model.RunfastActivity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 商家活动接口
 */
@RestController("userWmActivityController")
@RequestMapping(value= "/api/user/wm/activity", headers = "token")
public class ActivityController {



    /**
     * 获取商家当前正在进行中的活动列表
     * @param businessId
     * @param token
     * @return
     */
    @PostMapping("/inProgress")
    public Result<List<RunfastActivity>> list(@RequestParam int businessId, @RequestHeader String token) {
        Integer userId = TokenUtil.getUserId(token);


        return Result.ok("");
    }

}
